<?php
namespace App\Models\Entity\bqhot;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * @Entity(instance="bqhot.master")
 * @Table(name="bqhot_collect")
 * @uses      Collect
 */
class Collect extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var int $uid 
     * @Column(name="uid", type="integer")
     * @Required()
     */
    private $uid;

    /**
     * @var int $imgid 
     * @Column(name="imgid", type="integer", default=0)
     */
    private $imgid;

    /**
     * @var int $addtime 
     * @Column(name="addtime", type="integer")
     * @Required()
     */
    private $addtime;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setUid(int $value): self
    {
        $this->uid = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setImgid(int $value): self
    {
        $this->imgid = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setAddtime(int $value): self
    {
        $this->addtime = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * @return int
     */
    public function getImgid()
    {
        return $this->imgid;
    }

    /**
     * @return int
     */
    public function getAddtime()
    {
        return $this->addtime;
    }

}
